import { Component } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './syn.log.html'
})
export class SynLogComponent {
  fs: any = null;
  proDic: any = null;
  synStateDic: any = null;
  synTypeDic: any = null;
  constructor() {
    this.fs = new form.FormSideSimpleService('gisdatasynlog', {
      keyField: 'id',
      orderObject: { synDate: 1 },
      foreignKey: 'styleid'
    });

    // 初始化字典
    this.proDic = new form.DictionaryService('p_style_directory');
    this.proDic.load('0');
    this.synStateDic = new form.DictionaryService('g_syn_state');
  }
}
